Fixed error when adding a policy to a group