fix minor bug to save deadline