fixed an error involving the first user not becoming an admin

Change-Id: I849570910fb10e9d8d71bdbea2c9919008604e8f