Fix version selection bug