Fix blue screen (thanks to Dees_Troy)