Merchant class undefined purchase log reference

Fixes #685