Fixed problem to update Gen in sagmm