Minor Bug fix in Dialogue Processing