fix in print to only use one thread to print