Fix for tsc 1.0.
But,I'm not accustomed to use typescript,so it contains wrong fix.