Fixed a bug in the header not using dynamic container class