Fixed main.