generator error

fix