Fix janky history animation