Fix updates and deletes when using the :delegate option