I think by removing the line above this one, you are no longer filtering the tasks by the organization_id that is passed in. Adding an ES filter for that organization_id should cover it.