bug in auto reg