Fixed clear method in ModelManager.