fixed minor bug in the retrieve password tool