fixed a few bugs with subtasks