Fix permission order