Searching by name returns list instead of single object