fixed user detection when no user