Fixed crash with nVidia cards