Fixed: time point query when getting max demand (very important)