bugfix for builds querying