Fix some minor issues in the task builder.