Fix error in insert implicit boundary region.