fix for getBlockWithData() issue