fixed some syntax error in ts