Fix error in hlper when no user logged in