Fixes permissions on (mini)