prevent crash if text not found