Fix errors in permission declaration