Fix bug only primary key id.