Bugfix when logging out then back in again.