fix hookie code