fix bug about getTaskVar