Fixed a crash I had introduced