fixed TPOD error where a perfect rectangle was showing every time with the avg of near-far widths