grid header fix for issue #704