Fix error when redirecting `show` command output