Fixed possible BSoD. Thanks Ralf.