fix hooks session