manually incorporated pull request https://github.com/freeplane/freeplane/pull/37 by https://github.com/seb4stien