fix split window bug