avoid an exception (divide by zero) in the case of adding a HeaderFragment dynamically.
Merge pull request #1 from tyorikan/master

avoid an exception (divide by zero)