fixed initial display bug