fix bug for close button on the header