Main Method Duplication fixed

Main methods are detected correctly.