Fix version replacement