Fix version number check