Fix slab flip from top to bottom