Gamma correction bug fixed