fix bounds error on clicking at the header