Fixed a bug

Fixed a bug related to displayData function