Fix task ranges