Fixed a strange crash.