fix obstruction boundary

reported by ayashaki and SiahH