fix reinstall script