improve positive gradient correction