fixed issue that was causing script to look for ledgers from external servers too often