fix for clang static analyzer warning