Fix blockchain_generate_snapshot