fix small type in primary_key