fixed window size bug in sim-tui