fix $unset behavior. closes #1