Fixed a number of issues and reliability in credential harvester