fix local reference in purchases