Fixed deletion of last item in product management.