fix for TypeScript compiler