Fix version checks