fix activity filters when there are empty arrays