attempting to fix crash