Fix an issue that the magnifier will stop the button's click event after if dispaeared