Fix flap z-indexing