fixed plotresidualptps