Fixed bug when no data available.