Fix possible crash. I hope.