fix boundaries setsurface