Fixes static analyzer warnings. Part 3