Typescript complier fix