close button bug