fix non-flat shred generation