Fix several analyzer errors.