Autogroup: Fix reference leak