SITL in Mission Planner Auto mode stops working 7-8m away from waypoint

Hello, I was trying to write a code that would interrupt an autonomous mission sent by mission planner by switching to guided mode and waiting for 5 seconds. After the 5 seconds, I wanted to switch back to AUTO mode to resume the mission.
However I noticed that in MissionPlanner, regardless of if I switch to GUIDED mode or not, the mission keeps freezing at 7-8m away from my first waypoint.
I have tried restarting mission planner and creating new waypoints but its the same result every time.
Please help me with this

Without a .bin log file no one can help you.

sorry, I actually ended up fixing the problem by wiping the simulation and restarting it.