Fixed bug where return would not submit task.