Fix delete operations unref

It was not working :) It "dissociated" refs of deleted document O_o