fixed Commandlogging