add isMovingBack check fix to handle animations