fix dialog parsing!