fix amazon plugin no newline bug.