fix a bug when adding a header View