fixed set_permissions method call