clean error messages