removing the text from errors