Fixed generator example so it fails right