fixed primary key bug if not exist model