fixed length of undefined

error because TS file was unknown