Fixed bug in set user