fix a bug in OfflineTask