fixed get_previous_blockhash