Have you added printlns to the code to see where things start to go unexpected?
Where did you find the first unexpected value? What is the value and what value did you expect?
If some methods are...