Fix possible crash during move.