bugfix in array analysis helper