history stack fix.