removing error from the message