Fix duplicate store earnings on first purchase. Closes #1757