Fixed bug with editor validation. (Fixes #162)

Signed-off-by: Oskar <oskar.warme@gmail.com>