Fixed error when only one item in search list