Fix bug in deferral resulting in corrupted defer files