fix error with texture maps where texture file is not set