fix compile error

TypeError: Cannot set property 'compile' of undefined