Fixes editMode

editMode was not functional
Merge pull request #7 from IgorKlopov/patch-1

Fixes editMode