fix one bug to use right main class