Console commands fix.

The conn and dm are optional parameters and need default value.