Fix an issue where the shortcuts are not removed upon logout.