Fixed compiler warning (#2879)