Avoid possible crash