fix factorizedform bug