fix crash in spark