fix warning from pair typedef