fixed a hook error