fix query binding bug in d3 figure.