fix bug with zero holes