fixed sync logout from plugins bug #34372