Fixed bug with removing backreference versions from referenced objects during delete