fix the auto field