fix !groups substitution