fix for getting button text and text size crash when using styles