fix some bug for auto make script