Primary key bug fixed.