restore gamma and fix typo