fix hook variable