Fixed the hook