Fix bug where textures would sometimes not load.