fixed a bug where -j and --filter options would throw an exception