Fixed texture bug with direction 3