Fixed issue with hook declaration.