some fixes to hook after debug