fix the bug of saving filter setup

User can specify the directory to save the setup