Fixing history command