Fix up array issue causing only one query to be allowed.