Fix cursor positioning when selling last item in list.