Fix dismiss when touched outside.