Add invalid command was called in.

fixes #584
Merge pull request #697 from sckasturi/patch-2

Add the channel invalid command was called in.