Fixed maind typo and compiled