Fixed a problem that caused the mod to crash in a server (when placing a RiM machine)