Fix bug on lines with comments afer method declarations.