restore original values for charge and node distance