Replace statement each time, instead of appending.
Merge pull request #19 from Etc-Gallery/fix-append-bug

Replace statement each time, instead of appending