Fix check is_future_due, is_past_due