Fix for previous commit. Correctly hides on click.