gamma setting fix