fix issue where model names werent being lowercased