Fix the size display bug in some situation