fixing an error in the build script and fixing the latest build