compile fix when refcounting is disabled