Hmm, not sure. It could be an issue with your banjo or it could be that the tuning wasn’t correct. It’s hard to say without hearing/seeing you play it.
Are you spiking your 5th string at the 9th fret to make it a B?
Can you record a short clip of you playing the part and send it to me?