fix in ts2 for prototype