fixed NPE after loging out from user page