minor bug on handle_models_in_dir