fix error
add some functions in TaskObject