Fix  typescript compilation