fix crash,crashlytics and other fixes