fix build script bug