Fix partial matching of model name when autoloading.