wrap layout predicate fix