Small fix in ResourceReference, -1 breaks delivery statis check