SSIM fix