possible fix to app crashes