Fixed compilation error on some compilers