Definitely something is wrong with the boundary conditions. I need to impose them in real space, I think.