fix bugs for create users