fix getUsername callback