fix use of fromGenerator in lossy example