Possible boundary condition bug