All analyzer warnings fixed