fixes permissions keys