fixed an issue with TextureAtlas