fix initial crash if blockchain is not yet downloaded