Deletet error function