avoid an exception (divide by zero) in the case of adding a HeaderFragment dynamically.