fix upperbound not * in saver and in model generator