Fixed texture bugs