fixes #32 and also some other bugs in the edictor which were not mentioned in issues