Fix bug that the Plone dialog never closes.