fix history with remove and enter