Fix rules.
Prevent logout bug ?