Fix queue arrays