bug fix on the texture mapping