Fix for distorted replaced textures.