Out-cycle bug fix in forward learning