Fix fn_taskSyncState param select index