fix wrong slab placement bug