fix the errors for the first build.