fix a bug about model dump