fixed issue with nil return on due date