fix for iOS crashes, trying to render in background