fixed word adding error on duplicate keys