fix(harmony): Fixing issue with generator functions