fixed texture bugs