fix cppcheck errors