Fixed cppcheck error