Change the character you have selected at the bottom of the screen before entering into the dialogue. If it involves your main character, select him/her then enter the dialogue.