Fixed bugs in repex.py for dealing with explicit solvent.