Fixed crash on file editing
Merge pull request #12 from nephila/feature/fixcrashoneditfile

Fixed crash on file editing