Fix show window bug.