Fix an issue on multi-processor environment.