Fixed main error