fix modifier clearing, closes #4