Fixing several places where the upper triangle of the factor was being accidentally updated.