fix bug, textures were never loaded