Correct getImpaledBlock() function.