fixes purchase edit