Fix for 1897

See http://sourceforge.net/apps/mantisbt/freeplane/view.php?id=1897