Fix close button binding