Small fixes in textures loading path.