Bug fixes to get blockchain moving again