app.chain: flipping the direction of the factor in ChainModel