Managed to fix the bug, actually its related to compressing code after I compile. I never found it because I was always testing the development version, and I guess I didnt properly test the release version
you should check for other bugs now because when you get further down the line it will be a hassle later