Error in td_open.

Signed-off-by: Guillaume Poirier-Morency <guillaumepoiriermorency@gmail.com>