Fixed bug that shows an error message after clearing parameters.

Closes #151
Merge pull request #163 from agrc/151

Fixed bug that shows an error message after clearing parameters.