fixed add set_primary_key that caused errors in surat