fix member nil error