Fixed block_height query. Added -1 since we start counting from 0 instead of 1