Fix bug while writing narrowPeak