fix common dialog directive