fix overwriting key