fixed gradient flips in MASSIVE data