Fix username function.