correction of bug in case of non logged in