#48025, System table not updated when moving modules, patch by grugnog, changed variable name to match conventions.