Fix some analyzer warnings