fixed getBlock - issue #40