fix crash inside NSButtonCell