fix using for some versions of haystack