Fix the build script crash