Fixed a bug where the parent id wouldn't be recognized when filtering.