Fixed yet another bug in advOn