Fixed bugs on the ThirdPartyEmailPoller program