fix for bug where courtfunds were not persisted