fix so that waiting for text to be present doesn't error or timeout