Fixing TypeScript compiling