fix crash on no deadline set