bug fix for header element