Fixes mixup of textures.