fix bug in factorize