fix history command