Editted bug in taskOverlap