Fix to use of permissions object