fixed slab edges bug.