header dimension problem bug fix