(Anonymous)
As a traditional English piece, this should be in D-dorian, meaning 0 sharps and 0 flats. Because of the wrong key signature, you end up with those accidentals, something that would've been mitigated if the key signature was correct.
Dana:
Hi, Anonymous,
I agree. At the time I arranged this piece, I didn't know how to make that happen with my music software. If I ever re-do the piece, I may take that route!