Fix generator multiply function