Fix static analysis warning