fixed core build.