fix texture errors