fix for working multiprocess