do a bgchk to see what the background tile your character is in is, see if it is a house tile, then if so, undo the move you just did.