fixed bug that some email is not processed