Fixed a bug: tasks with more than 2 inputs have bad tempPath