fix record, deadline

fix the bug when one has less than 15 records