Fix for AccessViolationException on Intel HD 4000