Fixed rare bug with task.get()