Fixed a possible strange crash that hit me.