Fix wrong param building
Fix sync tasks flow