fix hook loop