Fixes bug if filterref is not specifed