Fix some issues with console processing.