fix history panel