tdb: fixed unitialized vars.