Fix printCommands in titanic

Fixed printCommands in titanic