Fix save with i autoincreament