Deleting patient records doesn't always work. Fixed

Issue #424