make gui textures work correctly