Fixed call to main