possible fix for crash