fix add empty line map, setup window size