fix gamma correction