((Server)server).setModuleState(temp, state) is called twice in this loop