Fix tasks export bug