fixed bug related for filtering tables, todo: filtering, check root, test again, enhance