fix Cannot read property compile of undefined