deal with missing closing boundary

@bf4 @jeremy