Fix red screen on some Android devices