Fixed incorrectness for method detection