Fixed task_region lambda errors introduced in previous commit