Fix typescript compilation