live search: fixed adding type twice