add getTaskInInterval fix few bug