solved a error in purchase