Fixed bug (whenever edit user, session ended).