fix allocation of nulls vector