fix typescript build error