Fix static analyze errors.