fix bugs due to not loading textures