Fixed OpenTK access violation exception.