Fix TypeScript compilation