lines 736 and $(cAPO.s).value in line 738 may look the same, but its not. the value retrieved from of $(cAPO.s).value has been modified by the method call in line 737.