Fixed all warnings generated by Static Analyzer