Fix version check