bug fix: max_due is not a date
Merge branch 'dev'