fixed TS 0.9.5 breaking changes