Fixed minor bugs in map movement.