Robot Control 30003 "FreeDrive" not working as intended

So the connection is fine and everything. I can send him some movej and he will do it,
but when sending “freedrive_mode()\n”, he enters and exits asap.

I don’t know why he gets out of it especially if a command like end_freedrive_mode() exists.

How can I toggle it. I can see in the logs that he recieves the command and then exists.
Weirdly enough wenn I tell him “end_freedrive_mode()\n” he enters freedrive just so he can exit.