fix crash.