[skip ci] Fix bug found by static analyzer