Fixed mistake with getting a method.