Fixed primary key autoincrement for rules.
Fixed question primary key autoincrement.