Bugs in density solver