bugfix: remove empty array elements to avoid wrong links on removed filters