Set TLS for the right task.

Well that cute little typo just cost me couple hours debugging #603.  Sigh.