Fix getHistorical return null when no data