deal with missing closing boundary

@bf4 @jeremy
:+1: