fix MaxRss crossing the line problem