Fix last item not visible bug