Fixed: forgot to execute the query to get max demand