fixed 3rd trace delta calculation bug, found peak bug