Fixed bug when user is referenced before assignment