w1: w1 temp calculation overflow fix