bug fix in exporting amp/ph