fix a bug on online shopping