ensure that the getRefererBeforeEdit work with underscore