fix metadata & forecast query