fix an issue where name is not returned