Fix for flashing textures