Fixing errors in search by name