fix a bug that restarted automatic email checking without user consent