minor fixes in boundary conditions