fixed a default value not being cleared between function calls