fix another possible crash