Bug when there is no autoIncrement field