fixed and tested block height calculation
fixed and tested block position calculation