some fixes (the editor still is not finished and there IS really a NEED
of refactoring)