Fixed invalid video mode being restored.