edit purchase redirect fix