Fixed bugs in boundary condition code