Fixing ensureElement