Quick fix for rotation crashing the app