Fixed bug with custom slabs.