fix bug of build script