Fixed up issue where locals weren't being passed into dialog.