fix cppcheck