Fixed a bug in opts.header