Getting the text from the wrong element