fix bad comparison of authorities for hooks