Fix #17 doneButton being disabled when maxCount=0.