Fix bugs  in user administration