Error fixing in purchase analysis