bug fix: layout failed when first element was postComplex