Fixed bug in gene_order tool.

The tool would incorrectly check the wrong key in the dictionary
and repeatedly overwrite the dictionary entry at the top level.