fix bug in default_name