Corrected error in edit purchase