fixed broken generator