Fix bug in wrong parent.
Fix cmd logging.