fixed some GPU stuff