I also suggest using $gettok($chan($active).mode,1,32) instead of $chan($active).mode.

For example:
$chan($active).mode = +ntk Query
A channel that has a key that contains Q, and the kick command will try to remove the Q mode