Fix possible BSoD, thanks Ralf.