Fixed error in autogroup commands.