Update AbstractGenerator.php

#29 fix