fixes analyzer warnings