Fix analyzer warnings