Fixed problem that prevented to correctly manage logout and relative sidebar statuses.