Fix tds on 4.6