Fixed a LoC crash