Fixed a crash