UGS switching to Imperial

Everything was going great. Never had an issue with the machine or UGS on my raspberry pi. Today while manually running the machine to plane a board, i accidentally right clicked while holding the jog button. Machine didnt stop jogging and i was forced to kill all power to everything to stop the crash. Now, after using the touch probe to set zero, it randomly sneaks a g21 command in, switching it to imperial. I cant figure out how to solve this except to maybe reinstall UGS. Help?

G21 is metric…