fix crash with new material theme