Fixed Cppcheck warning