[BUGFIX] Fix error in ts