"Fixed" a bug in Modified Generator