fixed the data display bug