Fixed possible crash when element not available