fix compile time error in examples with ions and electrons