fix possible crash with LIGH