Fixed mishandeling the outside click on the last item from the options list