Fix overflow in search hits