Fix typo on generator that causes a fatal error with php5.3