Fixes bug in task start & end date comparison