#992: fixed well-formedness errors

opened by njr2128