2nd attempt at fixing bug in note editor
Merge pull request #504 from timrae/noteEditorDeckFix

2nd attempt at fixing bug in note editor