when use $chan(something that isn't a number) and if that "something" isn't a channel it return the total of channels... it should return nothing! :tongue: sorry for my english.
It happens with almost any counting identifier, like $line(), $window(), $get/findtok() etc. It's one of those things that are handy in some cases but inconvenient in others.