fixed warnings reported by cppcheck