fix in ts check