Fixed crash on shift-clicking upgrades in/out of IO block