fix the build procedure