Fix "garbage" frames on some devices.