Fixed closest-side typo in gradient parsing