Fixed a crash bug under Unity 4.1