Update Gen.cpp

Fixed merge issue