Fix a bug where an incorrect technology would be shown in the tech gained dialog.