Modified PreviousVersion

Modified PreviousVersion type to be an Int
Keep in sync with project