fix the bug in regAuto