typescript stupid bug fix