Prevent possible crash