Fixed cppcheck warning