fix for update from 2.1.5 -> 2.3.3 - wrapElements