Fix for vSync. Not working :/