fix header_range to avoid Date overwrite error

as described in #2