Application permissions fixes.