Fix bug with version replacement.