fixed purchase totaller bug