fixed compileInit lib bug