fix compilation error for office