textures load bug fix