Fix to helper fn.