fix some bugs about textures in game