Fix bug 'auto field does not accept 0 value'