Musescore keeps inserting the wrong key signatures.
Either create new, select key signature - it inserts a different one, OR
in existing score, delete the key signature, select click and drag a new one in - it inserts a different one.
eg. I try to insert C maj and I get D maj, or I try F maj and I get G maj.