fixed gradient to be in line with new factor for solvent in liouville equation