Fix slab for functional masks