Fix last item can't be clicked bug