fix cppcheck issue