fix stuck in the right corner issue/move to more space fix