What is not "corrected" about the the result? Could you post the actual output and the expected output?