Fixed bug in clearing output area.