Update Gen.cpp

Fix merge issue