Fixed wrong method name

The real fix change is at line 122. Changes in other lines are just white spaces trimmed by my text editor.