I got the dialogue bug with the first boss too. It happens if you find all the clues before talking to him for the first time.
I think it happens because of this typo in the file dungeon_35:
if prisoner_clue4 == "resolve" (this should be "resolved" instead)