fix rev ref in delete handler