More permission bugs