fix for generators