Minor fixes to DialogParser