Fixed bug when data is displayed locally