Add invalid command was called in.

fixes #584