The note has an accidental when it shouldn’t, or it doesn’t when it should.

Maybe the note is simply of the wrong pitch? Click on it (using the Object Selection tool) and look at the info line. Move it to the correct pitch. If this is not the reason, maybe you have the wrong key set? And finally, you can also use enharmonic shifting.