Fix crash on policy v2 endpoint