Fix duplicate key warning (github #15 and googlecode #12).