fixes deadline checkbox logic