fixed bug in electrum chain generation (thanks to riX2000)