Fixing some issues with cloned elements for footers and headers