Fixes texture mapping