Fixed a bug where the emperor object would never change.