fixed a parallel issue for macs