modify a bug in modelutil