fixed resize ghost display bug