fix texture assignment order