Fixed the texture errors.

Thanks to LordZZT