fix bug on NickGen class