Fixed bug where source was still showing after 'clear selection' was clicked