Fixed minor bug.

An issue when your primary key is the same as your version.