fix the texture calls