Fix bug related to logged in user not set properly.