modify script for build fix