fix TS build