Update Generator.php

Solve a naming issue with the class Generator.