sandwich generator bugfix