Boundary matrices get filled correctly.