Fixed execution of wrong main class