Fixed the issue when buy the same thing twice.