fixed an issue with the pump filling network

not sure the cause but its fixed now. Also fixed a NPE with some debug
code but that is not important.