Fixing wrapping an element discovered inside another element