fixed security dialog bug