Fix problem with missing textures map check