Fixed a bug where a factory died while upgrading

Passed the wrong argument :(