Regression bug due to Issue #28 and autoincrement