Fixed an error in the main class