ok this is sketchy as hell but it seems to make it work properly