fix menu switch after logout