You made a small error in replacing Row 1. If a previous pivot happens to be a "1," do not try to force it to remain 1 for the rest of the calculation...