Fixed generators not properly initializing algorithm in certain cases.