fixed erroneous version checks