Fixed bug with console expression result

Fixed a bug with the result of a console expression not always
displaying.