fix history pushing