Fixed TS conversion error