fix bug that no classes be compiled