fix existing version check