Fixed possible crash in tricorder