Fix to bug with task search by instance id