Fixed a bug with selectAll in array context