Hook stack bug fix.