replacing erroneous tree nodes with syserrors