Bugfix for running with multiple processors