Fixed height issue when determining which block was selected