Fix for a crash with slabs.