fixed generators bug