Fix tasks for ts 3.x