fixed main error