Fixed auto increment error