Fixing static analyzer issue