Fixed the method scanner (btw my first commit, so hello)