changed delta to 1 for optional trees to avoid infinite loops. see issue #625