modify script for build error