fix autoincrement model