fix the bug: reading deadline from record file