Also, perhaps you can use /debug on and review the debug.log to determine if there is a difference in the data the first and second time (this might explain a problem, related to an UnrealIRCD version)