Fix for cmdline window bug.