Fix type comparison bug in copy recovery.
Fix type comparison bug in copy recovery.

sorgerlab/indra,johnbachman/belpy,pvtodorov/indra,bgyori/indra,johnbachman/indra,johnbachman/indra,pvtodorov/indra,sorgerlab/indra,pvtodorov/indra,sorgerlab/belpy,bgyori/indra,johnbachman/belpy,johnbachman/indra,bgyori/indra,sorgerlab/indra,johnbachman/belpy,sorgerlab/belpy,sorgerlab/belpy,pvtodorov/indra