fix texture loader