Revert "Change gamma caculation hack and top value."

This reverts commit 15bef2a979fd148453080253bb77a916386bcbfc.