Fixed a journalling bug; partial records were not logged correctly