Fix bug resulting in non-array is top fragment result