fix ordering issue where previous sibling is array