fix bug for check null