Corrected logic on version search processing.