Fixed bug where textures didn't always show up.