correction of errormessages