Fix error that was preventing results from being cached