fix bug of nulls