#164 fixed warnings after cppcheck