fix log redirect