fixed some bugs of automatic model suggestion.