fixed a bad history clear