correct Dirichlet boundaries