Fix: fix permissions wasn't called from dialog