fix remove range of jobs by type logic