fixed some bugs with holes