Fixing textures flags