Fixed texture bug