Fixed bugs in main() method